<?$math = $DB->getColumn("SELECT count(*) from pre_logs where status=1 AND to_days(endtime) - to_days(now()) >= -7");?>
<!DOCTYPE html>
<html lang="cn">

<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<link rel="shortcut icon" href="assets/img/favicon.ico">

	<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
	<meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="black" name="apple-mobile-web-app-status-bar-style">
	<meta content="telephone=no" name="format-detection">
	<meta content="email=no" name="format-detection">

	<title>
		<?echo $conf['web_name'] . "-" . $conf['web_title']; ?>
	</title>
	<meta name="keywords" content="<?echo $conf['web_keywords']; ?>">
	<meta name="description" content="<?echo $conf['web_description']; ?>">

	<link href="<?php echo $cdnpublic ?>twitter-bootstrap/4.6.0/css/bootstrap.min.css" rel="stylesheet">
	<link href="<?php echo $cdnpublic ?>font-awesome/5.14.0/css/all.min.css" rel="stylesheet">

	<link href="<?php echo $cdnprivate ?><?php echo 'template/' . $template->loaddir() ?>/assets/css/style.css"
		rel="stylesheet">
</head>

<body>
	<header class="clogin-header">
		<div class="container">
			<nav class="navbar navbar-expand-lg navbar-light">
				<a class="navbar-brand" href="#">
					<img src="assets/img/logo.png">
					<?echo $conf['web_name'] ?>
				</a>
				<button class="navbar-toggler" type="button" data-toggle="collapse"
					data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
					aria-label="Toggle navigation">
					<span class="navbar-toggler-icon"></span>
				</button>

				<div class="collapse navbar-collapse" id="navbarSupportedContent">
					<ul class="navbar-nav ml-auto">
						<li class="nav-item active">
							<a class="nav-link" href="#">首页</a>
						</li>
						<li class="nav-item">
							<a class="nav-link" href="user">用户中心</a>
						</li>
						<li class="nav-item">
							<a class="nav-link" href="?act=doc">开发文档</a>
						</li>
						<li class="nav-item">
							<a class="nav-link" href="<?echo kfqq($conf['web_kfqq']); ?>" target="_blank">联系我们</a>
						</li>
					</ul>
				</div>
			</nav>
		</div>
	</header>

	<section class="clogin-banner text-center">
		<div class="row" style="width:100%">
			<div class="col-sm-6 col-xs-12 banner-title">
				<h2>
					<?echo $conf['web_name'] ?>
				</h2>
				<p>
					近一周已被调用：
					<?echo 500 + $math; ?>&nbsp;次
				</p>
				<div class="clogin-banner-buttons">
					<a class="btn bg-white" href="user"><i class="fa fa-user fa-fw"></i> 用户中心</a>
					<a class="btn bg-white" href="?act=doc"><i class="fa fa-book fa-fw"></i> 开发文档</a>
				</div>
			</div>
			<div class="col-sm-6 d-none d-sm-block">
				<img src="https://img.alicdn.com/tfs/TB14WC0uAL0gK0jSZFAXXcA9pXa-1001-800.png">
			</div>
		</div>
	</section>

	<section class="clogin-section clogin-info text-center">
		<div class="container">
			<div class="clogin-section-title">
				<h2>什么是『
					<?echo $conf['web_name'] ?>』？</h2>
			</div>

			<p class="text-left">
				<?echo $conf['web_name'] ?>
				是一款社会化账号聚合登录系统，让网站的最终用户可以一站式选择使用包括微信、微博、QQ、百度等多种社会化帐号登录该站点。简化用户注册登录过程、改善用户浏览站点的体验、迅速提高网站注册量和用户数据量。有完善的开发文档与SDK，方便开发者快速接入。
			</p>
		</div>
	</section>

	<section class="clogin-section clogin-functions text-center">
		<div class="clogin-section-title">
			<h2>它有什么特点？</h2>
		</div>
		<div class="container">
			<div class="row">
				<div class="um-uapp-insight-card l-pic-r-word">
					<div class="um-uapp-insight-card-imgwrap">
						<img class="um-uapp-insight-card-img"
							src="https://img.alicdn.com/tfs/TB1RDFDurr1gK0jSZFDXXb9yVXa-1120-460.jpg">
					</div>
					<div class="um-uapp-insight-card-content">
						<div class="um-uapp-insight-card-title">全面覆盖国内主流互联网平台</div>

						<div class="um-uapp-insight-card-desc">
							<img style="width: 19px;height: 13px;"
								src="https://img.alicdn.com/tfs/TB16YZfr.T1gK0jSZFhXXaAtVXa-40-28.png" alt="">
							覆盖国内主流互联网平台登录，包括：微信账号登录、QQ账号登录、Alipay账号登录、微博账号登录、百度账号登录
						</div>
					</div>
				</div>
				<div class="um-uapp-insight-card r-pic-l-word">
					<div class="um-uapp-insight-card-imgwrap">
						<img class="um-uapp-insight-card-img"
							src="https://img.alicdn.com/tfs/TB1L31Zurr1gK0jSZR0XXbP8XXa-4672-1914.jpg">
					</div>
					<div class="um-uapp-insight-card-content">
						<div class="um-uapp-insight-card-title">集成成本低、速度快</div>
						<div class="um-uapp-insight-card-desc">
							<img style="width: 19px;height: 13px;"
								src="https://img.alicdn.com/tfs/TB16YZfr.T1gK0jSZFhXXaAtVXa-40-28.png" alt="">
							规避平台差异性，统一封装极简接口，多个平台一次搞定。且本平台目前免费使用。
						</div>


					</div>
				</div>
				<div class="um-uapp-insight-card l-pic-r-word">
					<div class="um-uapp-insight-card-imgwrap">
						<img class="um-uapp-insight-card-img"
							src="https://img.alicdn.com/tfs/TB1cx4DuET1gK0jSZFrXXcNCXXa-1120-460.jpg">
					</div>
					<div class="um-uapp-insight-card-content">
						<div class="um-uapp-insight-card-title">无需备案、无需审核</div>

						<div class="um-uapp-insight-card-desc">



							<img style="width: 19px;height: 13px;"
								src="https://img.alicdn.com/tfs/TB16YZfr.T1gK0jSZFhXXaAtVXa-40-28.png" alt="">
							不需要备案域名与繁琐的人工审核，只需在本站注册即可直接使用。
						</div>
					</div>
				</div>
				<div class="um-uapp-insight-card r-pic-l-word">
					<div class="um-uapp-insight-card-imgwrap">
						<img class="um-uapp-insight-card-img"
							src="https://img.alicdn.com/tfs/TB1RPO2urY1gK0jSZTEXXXDQVXa-4673-1918.jpg">
					</div>
					<div class="um-uapp-insight-card-content">
						<div class="um-uapp-insight-card-title">完善的控制面板与统计</div>

						<div class="um-uapp-insight-card-desc">

							<img style="width: 19px;height: 13px;"
								src="https://img.alicdn.com/tfs/TB16YZfr.T1gK0jSZFhXXaAtVXa-40-28.png" alt="">
							通过控制面板，可以实时掌握网站用户登录情况，包含各项统计数据。
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
	<section class="clogin-section clogin-links">
		<div class="container">
			<?echo htmlspecialchars_decode($conf['web_footer']); ?>
		</div>
	</section>
	<footer class="clogin-footer text-center">
		<p>Copyright © 2020-至今 <?echo $conf['web_name'] ?> All Rights Reserved.</p>
		<p><a href="http://beian.miit.gov.cn/" target="_blank" style="color: #999"><img src="assets/img/beian.png"
					alt="备案">
				<?echo $conf['web_icp']; ?>
			</a></p>
		<p id="time">项目稳定运行了：</p>
	</footer>

	<script src="<?php echo $cdnpublic ?>jquery/3.6.0/jquery.min.js"></script>
	<script src="<?php echo $cdnpublic ?>twitter-bootstrap/4.6.0/js/bootstrap.min.js"></script>

	<script>
		$(function () {
			$(document).scroll(function () {
				var t = $('.clogin-info').offset().top - $(document).scrollTop() - $('.clogin-header')
					.height();
				if (t <= 0) {
					$('.clogin-header').addClass('clogin-header-white');
				} else {
					$('.clogin-header').removeClass('clogin-header-white');
				}
			});
		});

		function timeElapse(time) {
			var current = Date();
			var seconds = (Date.parse(current) - Date.parse(time)) / 1000;
			var days = Math.floor(seconds / (3600 * 24));
			seconds = seconds % (3600 * 24);
			var hours = Math.floor(seconds / 3600);
			if (hours < 10) {
				hours = "0" + hours;
			}
			seconds = seconds % 3600;
			var minutes = Math.floor(seconds / 60);
			if (minutes < 10) {
				minutes = "0" + minutes;
			}
			seconds = seconds % 60;
			if (seconds < 10) {
				seconds = "0" + seconds;
			}
			var result = "项目稳定运行了：" + days + "天" + hours + "小时" + minutes + "分钟" + seconds + "秒";
			$("#time").text(result);
		}
		window.setInterval("timeElapse('<?echo $conf['web_sitetime']; ?>');", 1000);
		//项目运行时间
	</script>
</body>

</html>